﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevBank.Model;

namespace DevBank.Core
{
    public class CustomerManager
    {
        /// <summary>
        /// Initialise l'intence de entities framework avec la chaine de connexion
        /// </summary>
        private static DevBankEntities db = new DevBankEntities(Helpers.Configuration.SqlConnectionString);

        /// <summary>
        /// Création d'un costumer
        /// </summary>
        /// <param name="myCustomer"></param>
        /// <returns></returns>
        public static int Create(Customer myCustomer) 
        {

            db.AddToCustomer(myCustomer);

            return 0;
        }
    }
}
